## ## config via XieYihui
## options(repos = c(## CRAN = "http://streaming.stat.iastate.edu/CRAN",
##             CRAN = "https://mirrors.tuna.tsinghua.edu.cn/CRAN/",
##             ## mostly for Win
##             CRANextra = "http://www.stats.ox.ac.uk/pub/RWin"))
## ## Yihui's repos: XRAN
## install.packages(
##     "PACKAGE_NAME",
##     type = "source",
##     repos = c("https://xran.yihui.org", "https://cran.rstudio.com")
## )

options(repos = c(CRAN = "https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
## options(repos = c(CRAN = "http://mirrors.cloud.tencent.com/CRAN/"))
## options(repos = c(CRAN = "https://mirrors.aliyun.com/CRAN/"))

## options(BioC_mirror = "http://mirrors.ustc.edu.cn/bioc/")
options(BioC_mirror = "https://mirrors.tuna.tsinghua.edu.cn/bioconductor/")

if (!requireNamespace(packages_name, quietly = TRUE)) {
    install.packages(packages_name)
}

if (interactive()) {
    suppressMessages(require(devtools))
    options(warn = 1)
}

lapply(init_load_packages, require, character.only = TRUE)

## .Last <- function() {
##     cat("\nGoodbye at", date(), "\n")
## }
